﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace ConstellationShow.Pages
{
    public partial class News : MyPage
    {
        public News()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(News_Loaded);
        }

        void News_Loaded(object sender, RoutedEventArgs e)
        {
            _progress.IsVisible = true;
            web.Navigate(new Uri("http://f.lexun.com/touch/xingzuo.aspx?vs=2", UriKind.Absolute));
        }

        private void web_Navigating(object sender, NavigatingEventArgs e)
        {
            _progress.IsVisible = true;
        }

        private void web_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            _progress.IsVisible = false;
        }
    }
}